package com.tk.demo.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@ConfigurationProperties(prefix = "com.tk.demo.user")
@PropertySource(value = "classpath:user.properties")
@Data
public class Teacher {

    private String name;
    private int age;
}
